package menu;

import base.Main;
import java.util.Arrays;
import java.util.List;

public class InnerMenuItem extends MenuItem {
	public List<MenuItem>children;
	
	public InnerMenuItem( String caption, MenuItem... children ) {
		super( caption );
		this.children = Arrays.asList( children );
	}
	
	@Override
	public void select() {
		Main.showMenu( children );
	}
}
